<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSettingHomeInsurancesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('setting_home_insurances', function (Blueprint $table) {
            $table->charset = "utf8";
            $table->collation = "utf8_general_ci";
            $table->comment = "首页的下方的H5的页面信息";
            $table->increments('id');
            $table->string('img_url',225)->default('')->comment('封面图片');
            $table->string('title',225)->default('')->comment('标题');
            $table->string('subtitle')->default('')->comment('副标题');
            $table->string('button_name')->default('')->comment('按钮的文字');
            $table->string("url_set")->default('')->comment('链接设置');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('setting_home_insurances');
    }
}
